package com.fs.ibox_h.servie.impl;

import com.fs.ibox_h.dao.CollectionDao;
import com.fs.ibox_h.dao.TypeDao;
import com.fs.ibox_h.pojo.Type;
import com.fs.ibox_h.servie.TypeService;
import com.fs.ibox_h.util.BeanFactory;

import java.util.List;

/**
 * Author:HOU
 * date:2022/11/19  20:07
 * 案例:
 **/
public class TypeServiceImpl implements TypeService {
    TypeDao TypeDao = BeanFactory.createBean(TypeDao.class);
    @Override
    public List<Type> selectAll() {
        return TypeDao.selectAll();
    }

    @Override
    public void addType(String name) {
        TypeDao.addtype(name);
    }

    @Override
    public void dele(String name) {
        TypeDao.del(name);
    }
}
